Stop ns builds setting the EMACSLOADPATH environment variable
authorGlenn Morris <rgm@gnu.org>
Tue, 10 Jul 2012 01:04:28 +0000 (21:04 -0400)
committerGlenn Morris <rgm@gnu.org>
Tue, 10 Jul 2012 01:04:28 +0000 (21:04 -0400)
commit0e5647dc0572bf15f3c3f4fb4d582a33f0469539
tree48aba794fde658b6d62ec54fb70d25c58d980b06
parenta318b7d61e7da34f7bd3e39b7d7a28a2ee06ffe3
Stop ns builds setting the EMACSLOADPATH environment variable
Ref bugs 4309, 6401, etc.
This is the last environment variable (ab)used by the ns port in this way.

* src/nsterm.m (ns_load_path): Rename from ns_init_paths.
Now it does not set EMACSLOADPATH, just returns the load-path string.
* src/nsterm.h: Update accordingly.

* src/lread.c [HAVE_NS]: Include nsterm.h.
(init_lread) [HAVE_NS]: Use ns_load_path.

* src/emacs.c (main) [HAVE_NS]: No longer call ns_init_paths.
src/ChangeLog
src/emacs.c
src/lread.c
src/nsterm.h
src/nsterm.m